package zhoug.demo.player;

import android.app.Application;
import android.content.Context;


import androidx.multidex.MultiDex;
import zhoug.logging.Logger;
import zhoug.player.core.PlayerSDK2;
import zhoug.player.hikvision.HikPlayerInit;
import zhoug.player.qly.QlySdk;

public class App  extends Application {
    private static Application application;
    @Override
    public void onCreate() {
        super.onCreate();
        application=this;
        HikPlayerInit.init(this,null,true);
//        QlySdk.init(this,QlyAccount.appId,QlyAccount.privateKey,true);
        Logger.setDebug(true);
        PlayerSDK2.setDebug(true);
    }

    public static Application getApplication() {
        return application;
    }
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

}
